#pragma once

#include<iostream>
using namespace std;
#include"worker.h"
#include"employee.h"

#include"boss.h"
#include"manager.h"

#include<fstream>
#define FILENAME "empFile.txt"

class WorkManager
{
public:
	WorkManager();
	void Show_Menu();
	void ExitSystem();
	void Add_Emp();
	void save();

	bool m_FileIsEmpty;

	int get_Empnum();

	int m_EmployeeNum;

	void init_Emp();

	void Show_Emp();

	void Del_Emp();
	int IsExist(int id);
	int IsExistbyname(string name);


	void Mod__Emp();
	void Find__Emp();
	void Sort__Emp();
	void Clean_File();
	Worker** m_EmpArray;

	~WorkManager();
};
